package wang.Random;
import java.util.Random;
public class RandomDemo {
    public static void main(String[] args) {
        Random r = new Random();
        for (int i = 1; i <=20; i++) {
            int number = r.nextInt(10);
            System.out.println("随机数是 " + number);
        }

        for (int i = 1; i <=20 ; i++) {
            int data = r.nextInt(15) + 3;
            System.out.println("随机数是 "+ data);

        }
    }
}
